package com.myecl.poker.view;

import javax.swing.*;

class BidVerifier extends InputVerifier {

	@Override
	public boolean verify(JComponent input) {
		boolean result = false;
		JTextField textField = (JTextField) input;
		String text = textField.getText();
		
		try {
			Double.valueOf(text);
			result = true;
		} catch (NumberFormatException e) {
			
		}
		return result;
	}

}